this.addMenuItem(new PopupMenu.PopupSeparatorMenuItem());
this._newWindowItem = this.addAction(_('New Window'), () => {
+ this._animateLaunch();
this._app.open_new_window(-1);
Main.overview.hide();
});
this._detailsItem.visible = sw !== null;
}
+ _animateLaunch() {
+ if (this.sourceActor.animateLaunch)
+ this.sourceActor.animateLaunch();
+ }
+
/** */
destroy() {
super.destroy();
actions.forEach(action => {
const label = appInfo.get_action_name(action);
this._actionSection.addAction(label, event => {
+ if (action === 'new-window')
+ this._animateLaunch();
+
this._app.launch_action(action, event.get_time(), -1);
Main.overview.hide();
});